#!/bin/bash

# This install script will create a self-extracted
# archive to install clupower on a linux system.

SRC=..
BLD=build

mkdir $BLD
cp -R $SRC/lib $BLD
cp setup.sh $BLD
cp INSTALL_NOTES $BLD
cp $SRC/version $BLD
./makeself.sh $BLD install_clupower.run "Cluster power manager $(cat $SRC/version)" ./setup.sh
rm -rf $BLD
tar -zcf install_clupower.tar.gz install_clupower.run
